package com.ljm.boot.helloword;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.net.InetAddress;
import java.net.UnknownHostException;

@SpringBootApplication
public class HellowordApplication {

    public static void main(String[] args) {
        try {
            InetAddress localhost = InetAddress.getLocalHost();
            String ip = localhost.getHostAddress();
            System.out.println("IP Address: " + ip);
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
        SpringApplication.run(HellowordApplication.class, args);
    }

}
